package net.sudot.chess.business.model;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import net.sudot.chess.business.model.enums.SystemConfigType;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * 系统配置
 *
 * @author tangjialin on 2018-03-18.
 */
@Getter
@Setter
@Accessors(chain = true)
@Entity
public class SystemConfig extends BaseEntity<SystemConfig> {
    public static final String ATTRIBUTE_KEY = "attributeKey";
    public static final String ATTRIBUTE_TYPE = "attributeType";
    /** 配置名称 */
    private String attributeKey;
    /** 配置值 */
    private String attributeValue;
    /** 类型 */
    @Enumerated(EnumType.STRING)
    private SystemConfigType attributeType;
    /** 配置说明 */
    private String memo;

}
